unit PlugInSqlManager;

interface

uses
  Windows, Messages, SysUtils, Classes, Dialogs, Forms, Controls,
  JvPlugin;

type
  TSqlManager = class(TJvPlugIn)
    procedure JvPlugInConfigure(Sender: TObject);
    procedure JvPlugInPluginMessage(Sender: TObject; APluginMessage: Integer;
        AMessageText: string);
    procedure SqlManagerCommands0Execute(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

function RegisterPlugin: TJvPlugIn; stdcall;

implementation

{$R *.dfm}

uses pfsqlconfig;

// IMPORTANT NOTE: If you change the name of the Plugin container,
// you must set the type below to the same type. (Delphi changes
// the declaration, but not the procedure itself. Both the return
// type and the type created must be the same as the declared type above.
function RegisterPlugin: TJvPlugIn;
begin
  Result := TSqlManager.Create(nil);
end;

procedure TSqlManager.JvPlugInConfigure(Sender: TObject);
begin
//
end;

procedure TSqlManager.JvPlugInPluginMessage(Sender: TObject; APluginMessage:
    Integer; AMessageText: string);
begin
//
end;

procedure TSqlManager.SqlManagerCommands0Execute(Sender: TObject);
begin
  //
  TFsqlConfig.Execute(
    procedure(A1: string; A2: string; A3: String)
    begin
      ShowMessage(A1);
    end);
end;

end.
